WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct D

Total Complexity 130
Dependencies 11
Dependents 1
Total lines 1,048
Lines of code 455
Logical lines of code 256
Comment lines 385
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
do_transaction()
B
43 20 41
process_payment()
A
43 15 43
do_credit_card_transaction()
A
44 11 41
validate_credit_card_expiration_date()
A
54 10 19
validate_fields()
A
51 9 24
update_transaction_payment_method()
A
47 8 36
do_add_payment_method_transaction()
A
46 7 39
get_order()
S
52 7 22
validate_credit_card_fields()
S
56 7 16
do_gift_card_transaction()
S
46 5 37
validate_credit_card_account_number()
S
53 6 22
validate_csc()
S
57 6 17
get_order_for_add_payment_method()
S
45 4 42
add_add_payment_method_customer_data()
S
59 5 13
add_payment_method()
S
54 4 20
add_add_payment_method_transaction_data()
S
58 3 14
get_add_payment_method_payment_gateway_transaction_data()
S
82 1 3
is_direct_gateway()
S
82 1 3
transaction_forced()
S
82 1 3